﻿<%@ Control Language="C#" Inherits="Dimok.Web.UI.TableControlAjax" %>
<script runat="server">
	protected override void OnInit(EventArgs e) {
		ProfileID = "{D62945CC-0F5D-4f7e-A01D-4F52E36808FB}";
		WSEntityType = typeof(v_Upload);
		ClientType = "motobankcorp.Uploads";
		RowContextMenu = cmUploadsRow;
		//dsBookProviders.Selecting += new EventHandler<LinqDataSourceSelectEventArgs>(dsBookProviders_Selecting);
		base.OnInit(e);
	}

	//void dsBookProviders_Selecting(object sender, LinqDataSourceSelectEventArgs e) {
	//  e.Result = new MotoBank().ts_CarBookProviders;
	//}
	protected override IEnumerable<ScriptDescriptor> GetScriptDescriptors() {
		var descriptors = base.GetScriptDescriptors().Cast<ScriptControlDescriptor>().ToDictionary(d => d.Type);
		var descriptor = descriptors[ClientType];
		//descriptor.AddElementProperty("bookProviders", selBookProviders.ClientID);
		//descriptor.AddElementProperty("bookValueTypes", selBookValueTypes.ClientID);
		return descriptors.Values.ToArray();
	}
</script>
<%--<UI:RadGridExtender runat="server" />--%>
<%--<asp:Panel runat="server">
Book Provider:<select id="selBookProviders" runat="server" datasourceid="dsBookProviders" datatextfield="Name" datavaluefield="ID"></select>
<telerik:RadGrid runat="server" /> Value Type:<select id="selBookValueTypes" runat="server"></select>
</asp:Panel>--%>
<telerik:RadContextMenu ID="cmUploadsRow" Skin="Office2007" runat="server">
<Items>
	<telerik:RadMenuItem Text="Edit&" Value="Edit"></telerik:RadMenuItem>
	<!-- #include virtual="/Controls/_UI/Telerik/RowContextMenuIncludes/OpenLoan.aspx" -->
	<telerik:RadMenuItem IsSeparator="true"></telerik:RadMenuItem>
	<telerik:RadMenuItem Text="Import&" Value="Import"></telerik:RadMenuItem>
	<telerik:RadMenuItem IsSeparator="true"></telerik:RadMenuItem>
	<!-- #include virtual="/Controls/_UI/Telerik/RowContextMenuIncludes/CarPrice.aspx" -->
	<!-- #include virtual="/Controls/_UI/Telerik/RowContextMenuIncludes/Decisions.aspx" -->
</Items>
</telerik:RadContextMenu>

<asp:LinqDataSource ID="dsBookProviders" runat="server" />